package com.bangdream.michelia.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @date on 2018/8/12 17:44
 * @email 909732184@qq.com
 * 站内消息
 */
public class MessageBean implements Parcelable{


    /**
     * id : 2
     * userId : 54dcd9990fe8444bbddb3949e63d360d
     * delFlag : 0
     * pageNo : 1
     * pageSize : 100
     * notifyid : 2
     * readFlag : 1
     * readDate : 2018-09-18 10:46:26
     * type : 1
     * title : 测试用系统消息
     * content : 您的系统消息
     */

    private String id;
    private String userId;
    private String delFlag;
    private int pageNo;
    private int pageSize;
    private String notifyid;
    private String readFlag;
    private String readDate;
    private String type;
    private String title;
    private String content;

    protected MessageBean(Parcel in) {
        id = in.readString();
        userId = in.readString();
        delFlag = in.readString();
        pageNo = in.readInt();
        pageSize = in.readInt();
        notifyid = in.readString();
        readFlag = in.readString();
        readDate = in.readString();
        type = in.readString();
        title = in.readString();
        content = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(userId);
        dest.writeString(delFlag);
        dest.writeInt(pageNo);
        dest.writeInt(pageSize);
        dest.writeString(notifyid);
        dest.writeString(readFlag);
        dest.writeString(readDate);
        dest.writeString(type);
        dest.writeString(title);
        dest.writeString(content);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MessageBean> CREATOR = new Creator<MessageBean>() {
        @Override
        public MessageBean createFromParcel(Parcel in) {
            return new MessageBean(in);
        }

        @Override
        public MessageBean[] newArray(int size) {
            return new MessageBean[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public String getNotifyid() {
        return notifyid;
    }

    public void setNotifyid(String notifyid) {
        this.notifyid = notifyid;
    }

    public String getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(String readFlag) {
        this.readFlag = readFlag;
    }

    public String getReadDate() {
        return readDate;
    }

    public void setReadDate(String readDate) {
        this.readDate = readDate;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
